package cn.wd.user.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author wangdong
 * @date 2024/9/14 9:38
 **/
@Data
@Accessors(chain = true)
@TableName(value = "t_message")
public class Message {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "sender_id")
    private Integer sender;

    @TableField(value = "receiver_id")
    private Integer receiver;

    private Integer type;

    private String content;

    private LocalDateTime sendTime;

    private Boolean read;
}
